package com.swt.testdemo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/12 19:48
 **/
@Data
@TableName("sys_ontology")
public class SysOntologyEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;

    private String ontologyName;

    /**
     * 同义词，可以有多个，多个用分号隔开
     */
    private String ontologySynonym;

    private Date createdTime;

    private Date updateTime;


    public static final String ONTOLOGY_TYPE_CHEMICAL = "CHEMICAL";

    public static final String ONTOLOGY_TYPE_COMPANY = "COMPANY";

    public static final String ONTOLOGY_TYPE_ACCIDENT = "ACCIDENT";

    public static final String ONTOLOGY_TYPE_DANGER_SOURCE = "DANGER-SOURCE";

    public static final String ONTOLOGY_TYPE_LAW = "LAW";

    public static final String ONTOLOGY_TYPE_REACTION = "REACTION";

    public static final String ONTOLOGY_TYPE_CRAFT = " CRAFT";

}